#!/usr/bin/env python
# -*- coding: utf-8 -*-

from flask import Flask, request, session, g, redirect, url_for, \
     abort, render_template, flash, jsonify
from contextlib import closing
import logging

app = Flask(__name__)
app.config.from_pyfile('config.ini', silent=True)

@app.route('/')
def index():
    return render_template('index.html')
    
@app.route('/data')
def data():
    logging.warning('!!! test logging')
    a = 3
    b = 2
    return jsonify(result=a + b)
    
if __name__ == '__main__':
    app.run(host='0.0.0.0')